package cn.net.dpi.shp.exception;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 错误详情对象.
 *
 * @author liuke
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ErrorDetail implements Serializable {
    private int code;
    private String msgFormat;
    private String msg;

    public ErrorDetail(int code, String msgFormat) {
        this.code = code;
        this.msgFormat = msgFormat;
    }
}
